package com.travel.travelServer.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.travel.travelServer.entity.Permission;

import java.util.List;
import java.util.Map;

/**
 * (Permission)表服务接口
 *
 * @author makejava
 * @since 2023-10-24 16:42:30
 */
public interface PermissionService {

    List<Permission> getByLevel(Integer level);

    Page<Permission> pageByPermission(Page<Permission> page, Map<String, Object> conditions);

    Permission getPermissionById(Long id);

    Boolean savePermission(Permission permission);

    Boolean updatePermissionById(Permission permission);

    Boolean removePermissionById(Long id);

    Boolean removePermissionByIds(List<Long> asList);

    List<Map<String, Object>> getPermissionTreeList();

    List<Permission> getByRoleId(Long id);
}

